package ooExercise.ooday02;

public class ExtendsTes {
    public static void main(String[] args) {
        Student af=new Student("阿芬",23,"广西","jsd2023","1007");
        af.study();
        af.sleep();
        af.sayHi();
        af.eat();
        System.out.println("--------------------");

        Teacher aj=new Teacher("阿君",19,"湖南",1000000);
        aj.eat();
        aj.study();
        aj.sleep();
        aj.sayHi();

        Doctor ah=new Doctor("阿浩",19,"山东","妇科主任");
        ah.eat();
        ah.cut();
        ah.sleep();
        ah.sayHi();
    }
}
